home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork1i.lzh
/
SXWORK1.XDF
/
INCLUDE
/
WINDOW.H
< prev
Wrap
Text File
|
1994-02-20
|
4KB
|
199 lines
/*
* window.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
*/
#ifndef __WINDOW_H
#define __WINDOW_H
#ifndef __SXDEF2_H
#include <sxdef2.h>
#endif
#ifdef FORWORD
#define __PROTO_TYPE
#endif
#ifdef __STDC__
#define __PROTO_TYPE
#endif
typedef enum WDEFRscID WDEFRscID;
typedef enum WDEFCommand WDEFCommand;
typedef enum WPartCode WPartCode;
typedef struct WIND WIND;
/*
* ウィンドウマン(Window Man)
*/
#define W_FRONT ((Window *) -1)
enum WDEFRscID {
WI_STD = 0x20,
WI_PLN = 0x24,
WI_DLG = 0x26,
WI_EDLG,
WI_STDG = 0x30,
WI_STD2,
WI_STDG2
};
enum WDEFCommand {
CMD_WDRAW,
CMD_WWHERE,
CMD_WCALC,
CMD_WNEW,
CMD_WDISP,
CMD_WSIZE,
CMD_WSBOX,
CMD_WFILL,
CMD_WMOVE
};
enum WPartCode {
W_INDESK,
W_INSUBWIN,
W_ININSIDE = 3,
W_INDRAG,
W_INSIZE = 6,
W_INCLOSE,
W_INZMOUT,
W_INZMIN,
W_INARROW = 13,
W_INCLPON,
W_INCLPOFF,
W_INDRIVE,
W_INACTIVE = 0,
W_ACTIVE = 255
};
#define W_DIALOG 0x02
#define W_USER 0x08
#define W_GRAPHIC 0x10
#define W_SUBWIN 0x20
#define W_SCROLL 1
#define W_CLIP (1 << 1)
#define W_DRIVE (1 << 2)
#define W_SBOX (1 << 3)
#define W_SBOXON (1 << 8)
#define W_ARROW (1 << 9)
#define W_CLIPON (1 << 15)
struct WIND {
Rect bounds;
short defID;
short visible;
short close;
long taskID;
LASCII title;
};
/*
* サブウィンドウマン(Sub Window Man)
*/
#define WS_RUBBERBAND 0xcccc
#ifdef __PROTO_TYPE
/*
* ウィンドウマン(Window Man)
*/
int WMInit(void);
Window *WMOpen(Window *, Rect *, const _LASCII, BOOLEAN, int, Window *, BOOLEAN, long);
Window *WMRefer(int, Window *, Window *);
int WMClose(Window *);
int WMDispose(Window *);
int WMFind(LPoint, Window **);
int WMSelect(Window *);
int WMCarry2(Window *, Window *);
int WMCarry(Window *, Window *);
int WMShine(Window *, int);
int WMMove(Window *, LPoint, BOOLEAN);
int WMSize(Window *, LPoint, BOOLEAN);
LPoint WMGrow(Window *, LPoint, Rect *);
int WMDrag(Window *, LPoint, Rect *);
int WMZoom(Window *, int, BOOLEAN);
int WMShow(Window *);
int WMHide(Window *);
int WMShowHide(Window *, BOOLEAN);
int WMCheckBox(Window *, LPoint, int);
int WMCheckCBox(Window *, LPoint);
int WMDrawGBox(Window *);
int WMUpdate(Window *);
int WMUpdtOver(Window *);
Window *WMActive(void);
int WMAddRect(Rect *);
int WMAddRgn(Region **);
int WMSubRect(Rect *);
int WMSubRgn(Region **);
int WMGScriptSet(GScript **);
int WMTitleSet(Window *, const _LASCII);
int WMTitleGet(Window *, _LASCII);
int WMTIDSet(long);
long WMTIDGet(void);
GScript ***WMGetDTGS(void);
LPoint WMDragRgn(Region **, LPoint, Rect *, Rect *, int, void (*)());
unsigned short WMOptionGet(void);
void WMOptionSet(unsigned short);
BOOLEAN WMPtInGBox(LPoint);
/*
* サブウィンドウマン(Sub Window Man)
*/
Subwin *WSOpen(Subwin *, Region **, unsigned long);
int WSClose(Subwin *);
int WSDispose(Subwin *);
int WSEnlist(Subwin *);
int WSDelist(Subwin *);
#undef __PROTO_TYPE
#else
/*
* ウィンドウマン(Window Man)
*/
int WMInit();
Window *WMOpen();
Window *WMRefer();
int WMClose();
int WMDispose();
int WMFind();
int WMSelect();
int WMCarry2();
int WMCarry();
int WMShine();
int WMMove();
int WMSize();
LPoint WMGrow();
int WMDrag();
int WMZoom();
int WMShow();
int WMHide();
int WMShowHide();
int WMCheckBox();
int WMCheckCBox();
int WMDrawGBox();
int WMUpdate();
int WMUpdtOver();
Window *WMActive();
int WMAddRect();
int WMAddRgn();
int WMSubRect();
int WMSubRgn();
int WMGScriptSet();
int WMTitleSet();
int WMTitleGet();
int WMTIDSet();
long WMTIDGet();
GScript ***WMGetDTGS();
LPoint WMDragRgn();
unsigned short WMOptionGet();
void WMOptionSet();
BOOLEAN WMPtInGBox();
/*
* サブウィンドウマン(Sub Window Man)
*/
Subwin *WSOpen();
int WSClose();
int WSDispose();
int WSEnlist();
int WSDelist();
#endif __PROTO_TYPE
#endif __WINDOW_H